<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>易经占卜 - 六十四卦排盘</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>易经占卜</h1>
            <h2>六十四卦随机排盘</h2>
        </header>

        <main>
            <div class="question-section">
                <h3>请输入您的问题</h3>
                <textarea id="questionInput" placeholder="请在此输入您要占卜的问题..."></textarea>
                <button id="divinationBtn" onclick="performDivination()">开始占卜</button>
            </div>

            <div id="resultSection" class="result-section" style="display: none;">
                <div class="hexagram-display">
                    <h3>您的卦象</h3>
                    <div id="hexagramContainer">
                        <div id="hexagramSymbol"></div>
                        <div id="hexagramName"></div>
                        <div id="hexagramNumber"></div>
                    </div>
                </div>

                <div class="interpretation">
                    <h3>卦象解释</h3>
                    <div id="interpretationContent"></div>
                </div>

                <div class="question-display">
                    <h4>您的问题：</h4>
                    <p id="displayQuestion"></p>
                </div>

                <button onclick="resetDivination()">重新占卜</button>
            </div>
        </main>
    </div>

    <script src="script.js"></script>
</body>
</html>
